package com.bajayk.placeme 
{
	import Box2D.Collision.b2AABB;
	import Box2D.Common.Math.b2Vec2;
	import Box2D.Dynamics.b2World;
	import flash.display.Sprite;
	import com.bajayk.placeme.view.World;
	/**
	 * ...
	 * @author Ajay Badgujar
	 */
	public class Main extends Sprite
	{
		
		public function Main() 
		{
			// Creating world						
			createWorld();			
			
			// Creating database
			createWalls();
			
			// 
		}
		
		private function createWalls():void 
		{
			
		}
		
		private function createWorld():void 
		{
			var univers:b2AABB = new b2AABB();
			univers.lowerBound.Set( -3000 / World.RATIO, -3000 / World.RATIO);
			univers.upperBound.Set( 3000 / World.RATIO, 3000 / World.RATIO);
			
			var gravity:b2Vec2 = new b2Vec2(0, 9.8);
			
			var sleep:Boolean = true;
			
			World.world = new b2World(univers, gravity, sleep);
		}
		
	}

}